import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
import 'vant/lib/button/style';


import { Button, Tabbar, TabbarItem, NavBar, Form, Field, Checkbox, CheckboxGroup, Popup, Area, Cell } from 'vant';
Vue.use(Button).use(Tabbar).use(TabbarItem).use(Cell).use(Popup).use(Area).use(NavBar).use(Form).use(Field).use(Checkbox).use(CheckboxGroup).use(Popup);

new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this   //安装全局事件总线，$bus就是当前应用的vm
  },
  render: h => h(App)
}).$mount('#app')
